<%@page import="org.postgresql.util.PSQLException"%>
<%@page import="java.sql.SQLException"%>
<%@page import="java.security.NoSuchAlgorithmException"%>
<%@page import="java.io.UnsupportedEncodingException"%>
<%@page import="java.security.MessageDigest"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="classes.Conexao"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page buffer="100kb" autoFlush="false" %>
<!DOCTYPE html>
<html class=""><head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <meta charset="UTF-8">
        <title>NutriWeb - Praticando alimentação saudável</title>

        <meta class="viewport" name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">

        <!-- Favicon -->
        <link rel="shortcut icon" href="a_data/icone_nutriweb.ico">
        <!-- Font -->
        <link rel="stylesheet" href="arquivos_arquivos/css.css">
        <!-- Plagins CSS -->
        <link rel="stylesheet" href="arquivos_arquivos/buttons.css">
        <link rel="stylesheet" href="arquivos_arquivos/social-icons.css">
        <link rel="stylesheet" href="arquivos_arquivos/font-awesome.css">
        <link rel="stylesheet" href="arquivos_arquivos/bootstrap.css">
        <link rel="stylesheet" href="arquivos_arquivos/jslider.css">
        <link rel="stylesheet" href="arquivos_arquivos/settings.css">
        <link rel="stylesheet" href="arquivos_arquivos/jquery.css">
        <link rel="stylesheet" href="arquivos_arquivos/animate.css">
        <link rel="stylesheet" href="arquivos_arquivos/video-js.css">
        <link rel="stylesheet" href="arquivos_arquivos/morris.css">
        <link rel="stylesheet" href="arquivos_arquivos/royalslider.css">
        <link rel="stylesheet" href="arquivos_arquivos/rs-minimal-white.css">
        <link rel="stylesheet" href="arquivos_arquivos/layerslider.css">
        <link rel="stylesheet" href="arquivos_arquivos/ladda.css">
        <link rel="stylesheet" href="arquivos_arquivos/datepicker.css">
        <link rel="stylesheet" href="arquivos_arquivos/jquery_002.css">
        <!-- Theme CSS -->
        <link rel="stylesheet" href="a_data/style.css">
        <!-- Responsive CSS -->
        <link rel="stylesheet" href="a_data/responsive.css">
        <!-- Custom CSS -->
        <link rel="stylesheet" href="a_data/pages.css">
        <link rel="stylesheet" href="a_data/home-pages-customizer.css">
        <!-- IE Styles-->
        <link rel="stylesheet" href="a_data/ie.css">
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
              <link rel='stylesheet' href="css/ie/ie8.css">
        <![endif]-->
        <style type="text/css">
            .jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}</style>
        <style type="text/css">.fancybox-margin{margin-right:19px;}</style>
        <script style="" src="arquivos_arquivos/commonutilstats.js" charset="UTF-8" type="text/javascript"></script>
    </head>
    <body class="fixed-header loaded fixed"  style="background-image: url('a_data/nutriweb_logo_water2.png'); background-repeat: no-repeat; background-attachment: fixed; background-position: right bottom">
        <div class="page-box">
            <div class="page-box-content">

                <%
                    request.setCharacterEncoding("UTF-8");
                    String error_msg = "";
                    int error = 0;
                    if (request.getParameter("error") != null) {
                        error = Integer.parseInt(request.getParameter("error").toString());
                        switch (error) {
                            case 1:
                                error_msg = " Atenção, usuário existente!";
                                break;
                            case 2:
                                error_msg = " Atenção, senha não confirmada!";
                                break;
                            case 3:
                                error_msg = " Atenção, informação do usuário incorreta!";
                                break;
                        }
                    }

                    if (request.getParameter("logoff") != null && session.getAttribute("nm_email") != null) {
                        session.invalidate();
                        response.sendRedirect(request.getContextPath() + "/login.jsp");
                        return;
                    }
                %>

                <%
                    String SQL = null;
                    SimpleDateFormat dtf = new SimpleDateFormat("dd/MM/yyyy HH:mm");
                    SimpleDateFormat odtf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

                    if (session.getAttribute("nm_email") != null) {
                        String login = session.getAttribute("nm_email").toString();
                        SQL = "SELECT nm_usuario, ic_sexo, ic_admin, cd_usuario, dt_ultimo_acesso FROM \"Operacoes\".\"USUARIO\" WHERE nm_email = '" + login + "' ";

                        try {
                            for (Object[] reg : Conexao.getQuery(SQL)) {
                                session.setAttribute("nm_usuario", reg[0].toString());
                                session.setAttribute("ic_sexo", reg[1].toString());
                                session.setAttribute("ic_admin", reg[2].toString());
                                session.setAttribute("cd_usuario", reg[3].toString());
                                session.setAttribute("dt_ultimo_acesso", dtf.format(odtf.parse(reg[4].toString())));
                                response.sendRedirect(request.getContextPath() + "/inicio.jsp");
                                return;
                            }
                        } catch (Exception e) {
                            out.println("Atenção, " + e.getLocalizedMessage());
                        }
                    }
                %>     

                <header class="header header-two">
                    <div class="header-wrapper">
                        <div class="container">
                            <div class="row">
                                <div class="col-xs-6 col-md-2 col-lg-3 logo-box">
                                    <div class="logo">
                                        <a href="inicio.jsp">
                                            <img src="a_data/nutriweb_logo.jpg" class="logo-img" alt="">
                                        </a>
                                    </div>
                                </div><!-- .logo-box -->

                                <div class="col-xs-6 col-md-10 col-lg-9 right-box">
                                    <div class="right-box-wrapper">

                                        <div class="primary">
                                            <div class="navbar navbar-default" role="navigation">
                                                <button type="button" class="navbar-toggle btn-navbar collapsed" data-toggle="collapse" data-target=".primary .navbar-collapse">
                                                    <span class="text">Menu</span>
                                                    <span class="icon-bar"></span>
                                                    <span class="icon-bar"></span>
                                                    <span class="icon-bar"></span>
                                                </button>
                                                <nav style="height: 0px;" class="navbar-collapse collapse">
                                                    <ul class="nav navbar-nav navbar-center">
                                                        <li >
                                                            <a href="inicio.jsp">Início</a>
                                                        </li>
                                                        <li >
                                                            <a href="sobre.jsp">Sobre</a>


                                                    </ul>
                                                </nav>
                                            </div>
                                        </div><!-- .primary -->
                                    </div>
                                </div>

                                <div class="phone-active col-sm-9 col-md-9">
                                    <a href="#" class="close"><span>close</span>×</a>
                                    <span class="title">Call Us</span> <strong>+1 (777) 123 45 67</strong>
                                </div>
                                <div class="search-active col-sm-9 col-md-9">
                                    <a href="#" class="close"><span>close</span>×</a>
                                    <form name="search-form" class="search-form">
                                        <input class="search-string form-control" placeholder="Search here" name="search-string" type="search">
                                        <button class="search-submit">
                                            <svg xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
                                            <path fill="#231F20" d="M12.001,10l-0.5,0.5l-0.79-0.79c0.806-1.021,1.29-2.308,1.29-3.71c0-3.313-2.687-6-6-6C2.687,0,0,2.687,0,6
                                                  s2.687,6,6,6c1.402,0,2.688-0.484,3.71-1.29l0.79,0.79l-0.5,0.5l4,4l2-2L12.001,10z M6,10c-2.206,0-4-1.794-4-4s1.794-4,4-4
                                                  s4,1.794,4,4S8.206,10,6,10z"></path>
                                            <image src="img/png-icons/search-icon.png" alt="" width="16" height="16" style="vertical-align: top;">
                                            </image></svg>
                                        </button>
                                    </form>
                                </div>


                            </div><!--.row -->
                        </div>
                    </div><!-- .header-wrapper -->
                </header><!-- .header -->


                <div class="breadcrumb-box">
                    <div class="container">
                        <ul class="breadcrumb">
                            <li><a href="inicio.jsp">Início</a> </li>
                            <li class="active">Login</li>
                        </ul>	
                    </div>
                </div>

                <div class="clearfix"></div>
                <section id="main" class="login-register">
                    <header class="page-header">
                        <div class="container">
                            <h1 class="title">Acessar ou Criar conta</h1>
                        </div>	
                    </header>
                    <div class="container">
                        <div class="row">
                            <div class="content col-sm-12 col-md-12">
                                <div style="position: relative; height: 465px;" class="row filter-elements">
                                    <div style="position: absolute; left: 0px; top: 0px;

                                         <%if (error != 0 && error != 3) {
                               out.print("display: none;");
                           }%>

                                         " class="col-xs-12 col-sm-6 col-md-6 box login">
                                        <div class="info-box">
                                            <h3 class="title">Novos participantes</h3>
                                            <p class="descriptions">Não é cadastrado? &nbsp;Crie sua conta e começe agora mesmo a 
                                                praticar alimentação saudável!</p>
                                            <button id="new-costumers" class="btn btn-default filter-buttons

                                                    <%if (error != 0 && error != 3) {
                                          out.print("active-form");
                                      }%>

                                                    " data-filter=".register">Participar</button>
                                        </div>
                                    </div>

                                    <div style="position: absolute; left: 600px; top: 0px;

                                         <%if (error != 0 && error != 3) {
                               out.print("display: none;");
                           }%>

                                         " class="col-xs-12 col-sm-6 col-md-6 box login">

                                        <%
                                            if (request.getParameter("txtEmail") != null && request.getParameter("txtSenha") != null
                                                    && request.getParameter("login") != null && request.getParameter("login").toString().equals("yes")) {
                                                String email = request.getParameter("txtEmail").toString();
                                                String pw = request.getParameter("txtSenha").toString();

                                                String digest = null;
                                                try {
                                                    MessageDigest md = MessageDigest.getInstance("MD5");
                                                    byte[] hash = md.digest(pw.getBytes("UTF-8"));
                                                    StringBuilder sb = new StringBuilder(2 * hash.length);
                                                    for (byte b : hash) {
                                                        sb.append(String.format("%02x", b & 0xff));
                                                    }
                                                    digest = sb.toString();
                                                } catch (UnsupportedEncodingException ex) {

                                                } catch (NoSuchAlgorithmException ex) {

                                                }

                                                SQL = "SELECT cd_usuario, nm_email, nm_usuario, ic_admin, ic_sexo FROM \"Operacoes\".\"USUARIO\" WHERE nm_email = '" + email + "' AND cd_senha= '" + digest + "' ";
                                                try {
                                                    for (Object[] reg : Conexao.getQuery(SQL)) {
                                                        session.setAttribute("cd_usuario", reg[0].toString());
                                                        session.setAttribute("nm_email", reg[1].toString());
                                                        session.setAttribute("nm_usuario", reg[2].toString());
                                                        session.setAttribute("ic_admin", reg[3].toString());
                                                        session.setAttribute("ic_sexo", reg[4].toString());
                                                        session.setAttribute("dt_ultimo_acesso", dtf.format((new Date())));

                                                        Date dataUtil = dtf.parse(dtf.format(new Date()));
                                                        java.sql.Timestamp dataSQL = new java.sql.Timestamp(dataUtil.getTime());
                                                        Object[] params = new Object[]{dataSQL, Long.parseLong(reg[0].toString())};

                                                        SQL = "UPDATE \"Operacoes\".\"USUARIO\" SET "
                                                                + "dt_ultimo_acesso=? WHERE cd_usuario =? ";

                                                        Conexao.executeStatement(SQL, params);
                                                        response.sendRedirect(request.getContextPath() + "/inicio.jsp");
                                                        return;
                                                    }
                                                    response.sendRedirect(request.getContextPath() + "/login.jsp?error=3");
                                                    return;
                                                } catch (Exception e) {
                                                    out.println("Atenção, " + e.getLocalizedMessage());
                                                }
                                            }
                                        %>


                                        <form action="" novalidate="novalidate" class="form-box login-form form-validator bv-form" method="post">
                                            <input type="hidden" name="login" value="yes">
                                            <h3 class="title">Acesso à conta</h3>
                                            <p>Se você já é cadastrado, insira seus dados de acesso.</p>

                                            <div class="form-group has-feedback">
                                                <label>E-mail: <span class="required">*</span></label>
                                                <label style="color:red"><%if (error == 3) {
                                        out.print(error_msg);
                                    }%></label>
                                                <input type="email" name="txtEmail" data-bv-field="email" alt="Digite aqui seu e-mail cadastrado." class="form-control" 
                                                       required="" data-bv-emailaddress-message="Digite um e-mail válido." required="required" data-bv-notempty-message="Preencha seu email." maxlength="50">


                                                <small data-bv-result="NOT_VALIDATED" data-bv-for="email" 
                                                       data-bv-validator="emailAddress" class="help-block" style="display: none;">
                                                    Digite um endereço de e-mai válido.</small><small data-bv-result="NOT_VALIDATED" 
                                                                                                  data-bv-for="email" data-bv-validator="notEmpty" class="help-block" style="display: none;">
                                                    Digite seu e-mail.</small></div>

                                            <div class="form-group has-feedback">
                                                <label>Senha: <span class="required">*</span></label>
                                                <input data-bv-field="password" class="form-control" name="txtSenha" required="required" type="password"  data-bv-notempty-message="Preencha sua senha." maxlength="16"> 
                                                <small data-bv-result="NOT_VALIDATED" data-bv-for="password" 
                                                       data-bv-validator="notEmpty" class="help-block" style="display: none;">Digite aqui seu e-mail.</small></div>

                                            <span class="required"><b>*</b> Campos Obrigatórios</span>			  
                                            <div class="buttons-box clearfix">
                                                <button class="btn btn-default" type="submit">Acessar</button>

                                            </div>
                                        </form><!-- .form-box -->
                                    </div>

                                    <div style="position: absolute; 

                                         <%if (error == 0 || error == 3) {
                               out.print("display: none;");
                           }%>

                                         " class="col-xs-12 col-sm-6 col-md-6 box register">
                                        <form action="login.jsp" novalidate="novalidate" class="form-box register-form form-validator bv-form" method="post">
                                            <input type="hidden" name="signup" value="yes">                           
                                            <h3 class="title">Cadastro</h3>
                                            <p>Preencha os campos abaixo para fazer seu cadastro e participar.</p>

                                            <div class="form-group has-feedback">
                                                <label>Nome: <span class="required">*</span></label>
                                                <input name="txtNome" type="text" data-bv-field="fullName" class="form-control" data-bv-trigger="keyup" data-bv-notempty-message="Preencha seu nome." required="required" maxlength="50">
                                                <i data-bv-icon-for="fullName" class="form-control-feedback" style="display: none;"></i>
                                                <small data-bv-result="NOT_VALIDATED" data-bv-for="fullName" 
                                                       data-bv-validator="notEmpty" class="help-block" style="display: none;">Preencha seu nome.</small>
                                            </div>

                                            <div class="form-group has-feedback">
                                                <label>Email: <span class="required">*</span></label>
                                                <label style="color:red">
                                                    <%if (error == 1) {
                                          out.print(error_msg);
                                      }%>
                                                </label>                                
                                                <input maxlength="50" name="txtEmail" type="email" data-bv-field="email" class="form-control" data-bv-emailaddress-message="Digite um e-mail válido." data-bv-notempty-message="Preencha seu e-mail." required="required">
                                                <i data-bv-icon-for="email" class="form-control-feedback" style="display: none;"></i>
                                                <small data-bv-result="NOT_VALIDATED" data-bv-for="email" data-bv-validator="emailAddress"
                                                       class="help-block" style="display: none;">
                                                    Digite um e-mail válido.</small>
                                                <small data-bv-result="NOT_VALIDATED" data-bv-for="email" 
                                                       data-bv-validator="notEmpty" class="help-block" style="display: none;">
                                                    Preencha seu e-mail.</small>
                                            </div>					
                                            <div class="detail-box">
                                                <label>Sexo:</label>
                                                <label class="radio">
                                                    <input type="radio" name="rdSexo" value="M" checked></input>
                                                    M</label>
                                                <label class="radio">
                                                    <input type="radio" name="rdSexo" value="F" ></input>
                                                    F
                                                </label>
                                            </div>

                                            <div class="form-group has-feedback">
                                                <label>Senha: <span class="required">*</span></label>
                                                <input  name="txtSenha" type="password"
                                                        data-bv-field="password" class="form-control" required="required" data-bv-notempty-message="Preencha sua senha." maxlength="16">
                                                <i data-bv-icon-for="password" class="form-control-feedback" style="display: none;"></i>
                                                <small data-bv-result="NOT_VALIDATED" data-bv-for="password"
                                                       data-bv-validator="notEmpty" class="help-block" style="display: none;">
                                                    Digite sua senha.</small>
                                            </div>


                                            <div class="form-group has-feedback">
                                                <label>Confirmar senha: <span class="required">*</span></label>
                                                <label style="color:red">
                                                    <%if (error == 2) {
                                                        out.print(error_msg);
                                                    }%>
                                                </label>
                                                <input  name="txtConfirmSenha" type="password"
                                                        data-bv-field="password" class="form-control" required="required" data-bv-notempty-message="Confirme sua senha." maxlength="16">
                                                <i data-bv-icon-for="password" class="form-control-feedback" style="display: none;"></i>
                                                <small data-bv-result="NOT_VALIDATED" data-bv-for="password"
                                                       data-bv-validator="notEmpty" class="help-block" style="display: none;">
                                                    Confirme sua senha.</small>
                                            </div>



                                            <div class="buttons-box clearfix">
                                                <button class="btn btn-default" type="submit">Cadastrar</button>
                                                <button class="btn btn-default" type="reset">Limpar</button>
                                                <span class="required"><b>*</b> Campos Obrigatórios.</span>
                                            </div>
                                        </form><!-- .form-box -->

                                        <%
                                            if (request.getParameter("txtNome") != null
                                                    && request.getParameter("txtEmail") != null
                                                    && request.getParameter("rdSexo") != null
                                                    && request.getParameter("txtSenha") != null
                                                    && request.getParameter("txtConfirmSenha") != null
                                                    && request.getParameter("signup") != null
                                                    && request.getParameter("signup").toString().equals("yes")) {

                                                String name = request.getParameter("txtNome");
                                                String email = request.getParameter("txtEmail");
                                                String sex = request.getParameter("rdSexo");
                                                String pw = request.getParameter("txtSenha");
                                                String pw2 = request.getParameter("txtConfirmSenha");

                                                if (!pw.equals(pw2)) {
                                                    response.sendRedirect(request.getContextPath() + "/login.jsp?error=2");
                                                    return;
                                                } else {
                                                    String digest = null;
                                                    try {
                                                        MessageDigest md = MessageDigest.getInstance("MD5");
                                                        byte[] hash = md.digest(pw.getBytes("UTF-8"));
                                                        StringBuilder sb = new StringBuilder(2 * hash.length);
                                                        for (byte b : hash) {
                                                            sb.append(String.format("%02x", b & 0xff));
                                                        }
                                                        digest = sb.toString();
                                                    } catch (UnsupportedEncodingException ex) {

                                                    } catch (NoSuchAlgorithmException ex) {

                                                    }
                                                    Date dataUtil = dtf.parse(dtf.format(new Date()));
                                                    java.sql.Timestamp dataSQL = new java.sql.Timestamp(dataUtil.getTime());
                                                    Object[] params = new Object[]{name, digest, email, sex, dataSQL};
                                                    SQL = "INSERT INTO \"Operacoes\".\"USUARIO\" (nm_usuario, cd_senha, nm_email, ic_sexo, dt_ultimo_acesso) "
                                                            //+ "VALUES ('" + name + "', '" + digest + "', '" + email + "', '" + sex + "', '" + dtf.parse(dtf.format(new Date())) + "')";
                                                            + "VALUES (?,?,?,?,?)";
                                                    try {
                                                        Conexao.executeStatement(SQL, params);
                                                        session.setAttribute("nm_email", email);
                                                        response.sendRedirect(request.getContextPath() + "/login.jsp");
                                                        return;
                                                    } catch (SQLException e) {
                                                        if (((PSQLException) e).getSQLState().equals("23505")) {

                                                            //session.setAttribute("erro_usuario_existente", " Atenção, usuário existente!");
                                                            //session.setAttribute("erro_registro", "error");
                                                            response.sendRedirect(request.getContextPath() + "/login.jsp?error=1");
                                                            return;
                                                        }
                                                    }
                                                }
                                            }
                                        %>                        

                                    </div>

                                    <div style="position: absolute; left: 600px;  

                                         <%if (error == 0 || error == 3) {
                               out.print("display: none;");
                           }%>

                                         " class="col-xs-12 col-sm-6 col-md-6 box register">
                                        <div class="info-box">
                                            <h3 class="title">Acessar Conta</h3>
                                            <p class="descriptions">Já é cadastrado? Continue sua alimentação saudável acessando sua conta agora mesmo!</p>
                                            <button id="login-account" class="btn btn-default filter-buttons 

                                                    <%if (error == 0 || error == 3) {
                                    out.print("active-form");
                                }%>

                                                    " data-filter=".login">Acessar conta</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div><!-- .container -->
                </section><!-- #main -->

            </div><!-- .page-box-content -->
        </div><!-- .page-box -->

        <footer id="footer">
            <div class="footer-top">
                <div class="container">
                    <div class="row sidebar">
                        <center>
                            <div class="  widget links">
                                <div class="title-block">
                                    <h3 class="title">Menu</h3>
                                </div>
                                <nav>
                                    <ul>
                                        <li><a href="inicio.jsp">Início</a></li>
                                        <li><a href="sobre.jsp">Sobre</a></li>
                                    </ul>
                                </nav>
                            </div>  </center>
                    </div>
                </div>
            </div><!-- .footer-top -->
            <div class="footer-bottom">
                <div class="container">
                    <div class="row">
                        <center>
                            <div class="copyright ">
                                Desenvolvido em 2014 - NutriWeb
                            </div>
                        </center>
                        <div class=" ">
                            <a href="#" class="up">
                                <span class="glyphicon  ">Topo</span>
                            </a>
                        </div>
                    </div>
                </div>
            </div><!-- .footer-bottom -->
        </footer>
        <div class="clearfix"></div>

        <script async="" src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/www-widgetapi.js" id="www-widgetapi-script"></script><script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/iframe_api"></script><script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_015.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/bootstrap.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jshashtable-2.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_018.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/tmpl.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_012.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/draggable-0.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_021.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_016.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_022.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_009.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_019.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_011.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_007.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_008.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_005.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/isotope.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_006.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_017.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_020.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_003.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_013.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/SmoothScroll.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/country.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/spin.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/ladda.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/masonry.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/morris.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/raphael.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/video.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/pixastic.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/livicons-1.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/greensock.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/layerslider_002.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/layerslider.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_014.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_004.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/bootstrapValidator.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/bootstrap-datepicker.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_010.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jplayer.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/jquery_002.js"></script>
        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/main.js"></script>


        <script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/js" type="text/javascript"></script><script src="Accordions%20&amp;%20Toggles%20_%20Progressive%20%E2%80%94%20Responsive%20Multipurpose%20HTML%20Template_arquivos/main_002.js"></script>

    </body>
</html>
